/*
 *  Axolotl - Alternate persistence for Grails
 *  Copyright (C) 2008  Juanjo García Latre
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License as published by the Free Software Foundation; either
 *  version 2.1 of the License, or (at your option) any later version.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with this library; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 */
package com.googlecode.axolotl.jpa;

import java.util.Calendar;
import java.util.Date;
import java.util.List;

import javax.persistence.FlushModeType;
import javax.persistence.Query;
import javax.persistence.TemporalType;

import com.googlecode.axolotl.Database;
import com.googlecode.axolotl.lazy.LazyEntityList;


public class AxolotlQuery implements Query {

	private Database database;
	private com.googlecode.axolotl.query.Query nativeQuery;
	
	
	public AxolotlQuery(com.googlecode.axolotl.query.Query nativeQuery, Database database) {
		this.nativeQuery = nativeQuery;
		this.database = database;
	}

	
	public int executeUpdate() {
		// TODO Auto-generated method stub
		return 0;
	}

	public List getResultList() {
		return new LazyEntityList(nativeQuery, database);
	}

	public Object getSingleResult() {
		// TODO Auto-generated method stub
		return null;
	}

	public Query setFirstResult(int arg0) {
		// TODO Auto-generated method stub
		return null;
	}

	public Query setFlushMode(FlushModeType arg0) {
		// TODO Auto-generated method stub
		return null;
	}

	public Query setHint(String arg0, Object arg1) {
		// TODO Auto-generated method stub
		return null;
	}

	public Query setMaxResults(int arg0) {
		// TODO Auto-generated method stub
		return null;
	}

	public Query setParameter(String arg0, Object arg1) {
		// TODO Auto-generated method stub
		return null;
	}

	public Query setParameter(int arg0, Object arg1) {
		// TODO Auto-generated method stub
		return null;
	}

	public Query setParameter(String arg0, Date arg1, TemporalType arg2) {
		// TODO Auto-generated method stub
		return null;
	}

	public Query setParameter(String arg0, Calendar arg1, TemporalType arg2) {
		// TODO Auto-generated method stub
		return null;
	}

	public Query setParameter(int arg0, Date arg1, TemporalType arg2) {
		// TODO Auto-generated method stub
		return null;
	}

	public Query setParameter(int arg0, Calendar arg1, TemporalType arg2) {
		// TODO Auto-generated method stub
		return null;
	}

}
